package com.tch.mapper;

import com.tch.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    @Insert("insert into tc_webjj.t_crj_push_log(order_no,msg,bak1) values(#{0},#{1},#{2})")
    int inserUser1(@Param("id")String id,@Param("userName")String userName, @Param("age")Integer age);

    @Select("select order_no as id,msg as userName,bak1 as age from tc_webjj.t_crj_push_log where order_no=#{id}")
    UserEntity findUserById(@Param("id") String id);


}
